<!DOCTYPE html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
  
  <head>
    <meta charset="UTF-8">
    <title>撤销请假</title>
    <header th:replace="header::html"></header>
      <link rel="stylesheet" th:href="@{/ztree/zTreeStyle/zTreeStyle.css}" />
      <link rel="stylesheet" th:href="@{/ztree/demo.css}" />
  </head>
  
  <body>
    <div class="x-body">
        <label>
            您最后一次请假详情信息：
        </label>
        <form class="layui-form">
          <div class="layui-form-item">
              <label for="L_qjlb" class="layui-form-label">
                  <span class="x-red">*</span>请假类别
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="L_qjlb"  name="name" required="" lay-verify="name" autocomplete="off" class="layui-input">
              </div>
          </div>
            <div class="layui-inline">
                <label class="layui-form-label">
                    <span class="x-red">*</span>请假时间
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="date" id="date" lay-verify="date1" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_qjsy" class="layui-form-label">
                    <span class="x-red">*</span>请假事由
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="L_qjsy"  name="name" required="" lay-verify="name" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_spr" class="layui-form-label">
                    <span class="x-red">*</span>审批人
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="L_spr"  name="name" required="" lay-verify="name" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_spjg" class="layui-form-label">
                    <span class="x-red">*</span>审批结果
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="L_spjg"  name="name" required="" lay-verify="name" autocomplete="off" class="layui-input">
            </div>
            </div>
          <div class="layui-form-item">
                <label for="L_spyj" class="layui-form-label">
                    <span class="x-red">*</span>审批意见
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="L_spyj" name="name" required="" lay-verify="name" autocomplete="off" class="layui-input">
                </div>
            </div>
          <div class="layui-form-item">
                <label for="date2" class="layui-form-label">
                    <span class="x-red">*</span>审批时间
                </label>
              <div class="layui-input-inline">
                  <input type="text" name="date" id="date2" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label"><span class="x-red">*</span>撤销请假理由
                </label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入理由" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
      </form>
    </div>
    <script>
      layui.use(['form','layer', 'laydate'], function() {
          $ = layui.jquery;
          var form = layui.form
              , layer = layui.layer
              , laydate = layui.laydate;
          //日期
          laydate.render({
              elem: '#date'
              , format: 'yyyy-MM-dd' //可任意组合
              ,elem: '#date1'
              , format: 'yyyy-MM-dd' //可任意组合
          });
          //自定义验证规则
          form.verify({
              name: function (value) {
                  if (value.length < 4) {
                      return '角色名至少4个字符';
                  }
              }
          })
      })
  </script>
  </body>
</html>